package com.eage.security.login.inter;

import com.eage.security.domain.ShiroUserDetail;
import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * @Author: lex
 * @Date: 2019/2/1
 */
public interface UserLogin {

    AuthenticationInfo doGetAuthenticationInfo(UsernamePasswordToken token) throws AuthenticationException;

    ShiroUserDetail getUserDetail(UsernamePasswordToken token) throws AuthenticationException;
}
